require.config({
	baseUrl: './',
    paths: {
        // angular
        'angular': 'JSplugins/angular/angular',
        // angular-ui
        'angular-ui-router': 'JSplugins/angular-ui-router/angular-ui-router',
        // angular-animate
        'angular-animate': 'JSplugins/angular-animate/angular-animate.min',
        // angular-aria
        'angular-aria': 'JSplugins/angular-aria/angular-aria.min',
        // angular-material
        //'angular-material': 'JSplugins/angular-material/angular-material.min',
        'material-design-lite': 'JSplugins/angular-material-lite/material-design-lite/material',
        'angular-material-lite': 'JSplugins/angular-material-lite/angular-material-lite',
        'angular-material-dynamic': 'JSplugins/angular-material-lite/angular-material-dynamic',
        // angular-css
        'angular-css': 'JSplugins/angular-css/angular-css',
        // angular-translate
        'angular-translate': 'JSplugins/angular-translate/angular-translate.min',
        // angular-resource
        'angular-resource': 'JSplugins/angular-resource/angular-resource.min',
        'loader-static-files' : 'JSplugins/angular-translate/loader-static-files.min',
        // angular-touch
        'angular-touch' : 'JSplugins/angular-touch/angular-touch.min',
        // angular-swipe
        'angular-swipe' : 'JSplugins/angular-swipe/angular-swipe',
        // angular-sqlite
        'angular-sqlite' : 'JSplugins/angular-sqlite/angular-sqlite',
        // angularAMD
        'angularAMD': 'JSplugins/angularAMD/angularAMD.min',
        'ngload': 'JSplugins/angularAMD/ngload.min',
        //angular-Sanitize
        'angular-sanitize' : 'JSplugins/angular-sanitize/angular-sanitize.min',
        //'ng-persist' : 'JSplugins/ng-persist/ng-persist',
        //'ng-storage' : 'JSplugins/ng-storage/ngStorage.min',
        //angular-moment
        'angular-ui-tree' : 'JSplugins/angular-ui-tree/angular-ui-tree',
        //angular-moment
        'angular-moment' : 'JSplugins/angular-moment/angular-moment.min',
        //angular-gantt
        'angular-gantt' : 'JSplugins/angular-gantt/angular-gantt',
        'angular-gantt-plugins' : 'JSplugins/angular-gantt/angular-gantt-plugins',
        'angular-gantt-progress-plugin' : 'JSplugins/angular-gantt/angular-gantt-progress-plugin',
        'angular-gantt-tooltips-plugin' : 'JSplugins/angular-gantt/angular-gantt-tooltips-plugin',
        //'css-element-queries' : 'JSplugins/css-element-queries/ElementQueries',
        // moment
        'moment': 'JSplugins/moment/moment.min',
        // ionic
        'ionic': 'JSplugins/ionic/js/ionic.min',
        'ionic-angular': 'JSplugins/ionic/js/ionic-angular.min',

        //jquery
        'jquery': 'JSplugins/jQuery/jquery-2.2.4.min',

        //jqplot
        'jqplot': 'JSplugins/jqplot/jquery.jqplot.min',

        //jqplot plugins
        'jqplot-bar': 'JSplugins/jqplot/plugins/jqplot.barRenderer.min',
        'jqplot-text': 'JSplugins/jqplot/plugins/jqplot.canvasTextRenderer.min',
        'jqplot-axiTick': 'JSplugins/jqplot/plugins/jqplot.canvasAxisTickRenderer.min',
        'jqplot-categoryAxis': 'JSplugins/jqplot/plugins/jqplot.categoryAxisRenderer.min',
        'jqplot-pie': 'JSplugins/jqplot/plugins/jqplot.pieRenderer.min',
        'jqplot-legend': 'JSplugins/jqplot/plugins/jqplot.enhancedLegendRenderer.min',
        'jqplot-pointLabels': 'JSplugins/jqplot/plugins/jqplot.pointLabels.min',

        //angular-perfect-scrollbar
        //'perfect-scrollbar':'JSplugins/perfect-scrollbar/min/perfect-scrollbar.min',
		'perfect-scrollbar':'JSplugins/perfect-scrollbar/src/perfect-scrollbar',
        'angular-perfect-scrollbar':'JSplugins/angular-perfect-scrollbar/angular-perfect-scrollbar',
		'signalr':'JSplugins/signalr/jquery.signalR.min',
		'angular-signalr-hub':'JSplugins/angular-signalr-hub/signalr-hub',

        // d3
        'd3': 'JSplugins/d3/d3.min',
		'd3-MindMap': 'JSplugins/d3-MindMap/d3-MindMap',
        'fastClick': 'JSplugins/fastclick/lib/fastclick',

        'text':   'JSplugins/requirejs/text',
        'print': 'JSplugins/print/print',
		'module-installer': 'JSplugins/ModuleInstaller/ModuleInstaller',
		'sortablejs': 'JSplugins/sortablejs/Sortable.min',
		'app' : 'config/app',
		'sys-config' : 'config/config',
		'sys-common' : 'config/common',
		'sys-menu' : 'config/menu',
        'JDA': 'JSplugins/JDA/jdajia',
        'pinch-zoom':'JSplugins/pinch-zoom/src/pinch-zoom',
        'xlsx':'JSplugins/xlsx/xlsx.full.min',
        'ssf':'JSplugins/ssf/ssf',
        'jqplot-donutRenderer': 'JSplugins/jqplot/plugins/jqplot.donutRenderer.min'
    },
    shim: {
        'xlsx': { exports: 'XLSX' },
        // angular
		'angular': { exports: 'angular' },
		'fastClick': { exports: 'fastClick' },
        // angular-ui
        'angular-ui-router': ['angular'],
        // angular-css
        'angular-css': ['angular'],
        // angular-animate
        'angular-animate': ['angular'],
        // angular-aria
        'angular-aria': ['angular'],
        // angular-css
        //'angular-material': {
        //	deps : ['angular-animate', 'angular-aria']
        //},
        'angular-material-lite' : {deps:['material-design-lite', 'angular', 'd3', 'sortablejs']},
        'angular-material-dynamic' : {deps:['material-design-lite', 'angular', 'd3', 'sortablejs', 'angular-material-lite']},
        // angular-translate
        'angular-translate': ['angular'],
        'loader-static-files': ['angular-translate'],

        //angular-touch
        'angular-touch' : ['angular'],
        'angular-swipe' : ['angular'],

        //angular-sqlite
        'angular-sqlite' : ['angular'],

        // angularAMD
        'angularAMD': ['angular'],
        'ngload': ['angularAMD'],
        'angular-sanitize' : ['angular'],
        'angular-resource' : ['angular'],
		'angular-ui-tree': ['angular'],
        'angular-gantt' : ['angular', 'moment', 'angular-moment'],
        'angular-gantt-plugins' : ['angular-gantt'],
        'angular-gantt-progress-plugin' : ['angular-gantt'],
        'angular-gantt-tooltips-plugin' : ['angular-gantt'],
		//'css-element-queries': ['element-queries'],
        //'ng-storage' : ['angular'],
        //'ng-persist' : ['ng-storage'],
        // ionic
        'ionic': { exports: 'ionic' },
        'ionic-angular': ['ionic', 'angular', 'angular-animate', 'angular-sanitize', 'angular-resource'],

        //jqplot
        'jqplot': ['jquery'],
        'jqplot-text':['jqplot'],
        'jqplot-axiTick':['jqplot', 'jqplot-text'],
        'jqplot-categoryAxis':['jqplot'],
        'jqplot-legend': ['jqplot'],
        'jqplot-bar': ['jqplot', 'jqplot-axiTick', 'jqplot-categoryAxis', 'jqplot-legend'],
        'jqplot-pie': ['jqplot'],
        'jqplot-pointLabels':['jqplot'],
        'jqplot-donutRenderer': ['jqplot', 'jqplot-pie'],

        //angular-perfect-scrollbar
        'angular-perfect-scrollbar':['angular', 'jquery', 'perfect-scrollbar'],
		'signalr':['jquery'],
		'angular-signalr-hub':['signalr', 'angular'],
		'module-installer':['angular'],
        'JDA': { exports: 'JDA' },
		'd3-MindMap' : {deps:['material-design-lite', 'angular', 'd3']},
    },
    deps: ['config/bootstrap']
});
